package com.zito.health.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.javassist.runtime.Inner;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 巡检
 *
 * @auth sun
 */

@Data
@Table(name = "le_laboratory_inspect")
public class LaboratoryInspect implements Serializable {
    @Id
    private Integer id;
    private String content; // 巡检内容
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time; // 巡检时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date completionTime; // 整改完成时间
    private Integer inspectorsId; // 巡检人员
    private Integer completionPersonId;// 整改人员
    private Integer laboratoryId; // 实验室id
    private Short states; // 状态：0需整改1整改待审核2整改完成
    private Integer areaId; // 区域id
    private Integer unitId; // 单位id
    @Transient
    private String url; // 图片地址

}
